'use strict';
module.exports = {
  up: async (queryInterface, Sequelize) => {
    await queryInterface.createTable('Roles', {
      id: {
        allowNull: false,
        autoIncrement: true,
        primaryKey: true,
        type: Sequelize.INTEGER
      },
      roleId: {
        type: Sequelize.INTEGER
      },
      accountId: {
        type: Sequelize.INTEGER
      },
      serverId: {
        type: Sequelize.INTEGER
      },
      name: {
        type: Sequelize.STRING
      },
      resId: {
        type: Sequelize.INTEGER
      },
      race: {
        type: Sequelize.INTEGER
      },
      sex: {
        type: Sequelize.INTEGER
      },
      relive: {
        type: Sequelize.INTEGER
      },
      reliveList: {
        type: Sequelize.STRING
      },
      level: {
        type: Sequelize.INTEGER
      },
      levelReward: {
        type: Sequelize.STRING
      },
      exp: {
        type: Sequelize.INTEGER
      },
      money: {
        type: Sequelize.INTEGER
      },
      mapId: {
        type: Sequelize.INTEGER
      },
      x: {
        type: Sequelize.INTEGER
      },
      y: {
        type: Sequelize.INTEGER
      },
      bangId: {
        type: Sequelize.INTEGER
      },
      firstCharge: {
        type: Sequelize.INTEGER
      },
      color: {
        type: Sequelize.STRING
      },
      star: {
        type: Sequelize.INTEGER
      },
      shane: {
        type: Sequelize.INTEGER
      },
      addPoINTEGER: {
        type: Sequelize.STRING
      },
      xiuPoINTEGER: {
        type: Sequelize.STRING
      },
      xiuLevel: {
        type: Sequelize.INTEGER
      },
      title: {
        type: Sequelize.STRING
      },
      skill: {
        type: Sequelize.STRING
      },
      bagItem: {
        type: Sequelize.STRING
      },
      lockerItem: {
        type: Sequelize.STRING
      },
      partner: {
        type: Sequelize.STRING
      },
      pet: {
        type: Sequelize.INTEGER
      },
      getpet: {
        type: Sequelize.INTEGER
      },
      equipList: {
        type: Sequelize.STRING
      },
      taskState: {
        type: Sequelize.STRING
      },
      partnerList: {
        type: Sequelize.STRING
      },
      chargeSum: {
        type: Sequelize.INTEGER
      },
      rewardRecord: {
        type: Sequelize.INTEGER
      },
      getGift: {
        type: Sequelize.INTEGER
      },
      shuilu: {
        type: Sequelize.STRING
      },
      activeSchemeName: {
        type: Sequelize.STRING
      },
      friendList: {
        type: Sequelize.STRING
      },
      lastOnline: {
        type: Sequelize.DATE
      },
      gmLevel: {
        type: Sequelize.INTEGER
      },
      state: {
        type: Sequelize.INTEGER
      },
      getGift2: {
        type: Sequelize.INTEGER
      },
      createdAt: {
        allowNull: false,
        type: Sequelize.DATE
      },
      updatedAt: {
        allowNull: false,
        type: Sequelize.DATE
      }
    });
  },
  down: async (queryInterface, Sequelize) => {
    await queryInterface.dropTable('Roles');
  }
};